package Units;
import main.Unit;
import main.Player;
/**
 * the set up for the cannon unit type
 * @author Bart
 *
 */
public class Cannon extends Unit{
	static int[] c = {5, 15, 1, 0, 0, 0, 0};
	/**
	 * base constructor
	 * @param xpos
	 * @param ypos
	 * @param o player owner
	 */
	public Cannon(int xpos, int ypos, Player o){
		super(xpos, ypos, 10,10,5,o, 10);
		name="Can";
		setCost(c);
		
		if(o.getRes().getTree().checkIfComplete("MetalW"))
			this.setDamage(this.getDamage()+2);
	}
}
